package com.hxzy.controller.anonymous.sms.req;

import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Getter
@Setter
@ApiModel(value = "手机参数模型")
public class MobileReq {

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^0?(13|14|15|16|17|18|19)[0-9]{9}$",message = "手机号只支持(13|14|15|16|17|18|19)的号码")
    private String mobile;

}
